<script setup lang="ts"></script>

<template>
  <div class="article-container">
    <div class="article-wrapper">
      <div class="list">
        <div v-for="item in 10" :key="item" class="item"></div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.article-container {
  width: 100%;
  height: 100%;
  //background-color: red;
  border: 2px solid red;

  .article-wrapper {
    width: 100%;
    height: 100%;

    .list {
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(3, 1fr);

      .item {
        height: 50px;
        border: 1px solid blue;
      }
    }

    @media screen and (max-width: 768px) {
      .list {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media screen and (max-width: 480px) {
      .list {
        grid-template-columns: repeat(1, 1fr);
      }
    }
  }
}
</style>
